/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Hunterbot;

/**
 *
 * @author mbell28
 */

import java.awt.AWTException;
import java.awt.Event;
import java.awt.Robot;
import java.awt.Color;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;
import java.io.*;
import java.util.*;

public final class HunterBot{
    private Stack<String> character;

   public static void main(String[] args) throws AWTException
   {
     Robot robot = new Robot();
     robot.setAutoDelay(5);
     robot.setAutoWaitForIdle(true);

     //put mouse in the top left of the screen
     robot.mouseMove(330, 40);
     //wait so that you can see the result
     robot.delay(1000);
     //put the mouse 200 pixels away from the top
     //10 pixels away from the left 
     robot.mouseMove(350, 440);
     robot.delay(1000);
     robot.mouseMove(350, 1040);
     robot.delay(1000);
     robot.mouseMove(350, 1200);
     robot.delay(1000);
     robot.mouseMove(350, 1540);
     robot.delay(1000);
     robot.mouseMove(350, 1780);
     robot.delay(1000);
     robot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
     robot.mouseRelease(InputEvent.BUTTON1_MASK);
     robot.keyPress(KeyEvent.VK_A);
     robot.keyRelease(KeyEvent.VK_A);
     robot.keyPress(KeyEvent.VK_S);
     robot.keyRelease(KeyEvent.VK_S);
     robot.keyPress(KeyEvent.VK_S);
     robot.keyRelease(KeyEvent.VK_S);
     Color thisColor = robot.getPixelColor(350, 1050);
     System.out.println(thisColor.toString());
}
     
     
}